package huhx.linux.com.kotlinlearn.adapter

import huhx.linux.com.kotlinlearn.model.User
import io.reactivex.annotations.CheckReturnValue
import io.reactivex.annotations.SchedulerSupport

/**
 * Created by huhx on 2018-03-18 上午 10:05.
 */

object LamdaTest {

    fun add(x: Int, y: Int) = x + y

    fun subscribe(success: IConsumer<in User>?, errro: IConsumer<in Throwable>?) {

    }

    fun consumer(consumer: IConsumer<in User>) {

    }

    fun provide(provide: IProvider) {


    }

    fun runnable(runnable: Runnable) {


    }


    @JvmStatic
    fun main(args: Array<String>) {
        Thread(Runnable { println(add(3, 6)) })

        val cousumer: IConsumer<in User>? = null
        val error: IConsumer<in Throwable>? = null


        provide(IProvider {

        })

        runnable(Runnable {

        })

    }
}
